package dao;

import modelo.Model;


    public interface BaseDao
    {

       /**
        * Insert A Record in the database
        * @throws DaoException
        */
       void create() throws Exception;

       /**
        * Update A Record in the database
        * @throws DaoException
        */
       void update() throws Exception;

       /**
        * Delete A Record in the database
        * @throws DaoException
        */
       void delete() throws Exception;

       /**
        * Find a record by it's primary key
        * @return Model   An instance implementation of the Model interface
        * @throws DaoException
        */
       Model findById(Long id) throws Exception;
    }
